package bg.amazone.simpleDB.jpa.test;

import javax.persistence.Entity;
import javax.persistence.Id;

import bg.amazone.simpleDB.jpa.UtilJPA;

@Entity
public class MyTestObject {


    private String id;
    private String name;

    @Id
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
   
    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }
    
    public void save() {
    	UtilJPA.getEntityManager().persist(this);
    }
    
    public String toString(){
    	return "MyTestObject : "+this.id+"  "+this.name;
    }

}